home *** CD-ROM | disk | FTP | other *** search
- GetQual 1.30
-
- Copyright © 1996 by Joerg Schuchardt
-
- - FREEWARE -
-
-
-
- Disclaimer
-
- This software (program and documentation) is provided "as is" and comes
- with no warranty, either expressed or implied.
- The author is not and will never be liable for any kind of damage or
- loss that may occur due to direct or indirect usage of this
- software. You use the software on your own risk.
-
-
- Distribution
-
- GetQual may be freely distributed as long as all files are kept together
- in the original archive-file and none of the embedded files has been
- modified.
-
-
- What the program is good for
-
- GetQual is a CLI command that simply gets the state of some qualifiers
- at the very moment of the program's runtime. As a result it sets the
- returncode to 5 (WARN) if any qualifier is being pressed and it declares
- eleven new local or global variables which can be used in a script file.
- The advantage, compared to other programs which also ascertain the state
- of the qualifiers, is that you only have to run the program once but can
- use the result several times.
- I use GetQual in the startup-sequence to influence my Amiga's con-
- figuration: start with or without loading the EGS drivers, with or
- without running the contents of the WBStartup drawer and with or without
- activating additional tools.
-
-
- How to use it
-
- Running GetQual is as simple as it can be:
-
- Synopsis
- GetQual [ENV] [SHOW] [CLEAR]
-
- Pattern
- ENV/S,SHOW/S,CLEAR/S
-
- After having started GetQual without arguments, there are eleven new
- local variables accessible, namely:
-
- lshift, rshift, capslock, control, lalt, ralt, lcommand, rcommand,
- midbutton, rbutton and lbutton.
-
- The first thing GetQual does is setting them all to "0". If a qualifier
- is being pressed, the corresponding variable will be set to "1".
- You can simply check the result by using GetQual with the SHOW
- argument.
-
- If any of the qualifiers was being pressed GetQual also returns a WARN.
-
- Example for the startup-sequence:
-
- C:SetPatch QUIET
- C:Version >NIL:
- C:GetQual
- IF WARN
- C:Beep
- EndIF
- FailAt 21
- [...]
- IF $control EQ 1
- C:Mount >NIL: DEVS:DOSDrivers/~(ECON|#?.info)
- ELSE
- C:Mount >NIL: DEVS:DOSDrivers/~(#?.info)
- EndIF
- [...]
-
- Makes a "beep" if any qualifier was being pressed and omits loading the
- EGS drivers if <Ctrl> was the pressed qualifier. Otherwise they will be
- mounted.
-
- Using the argument ENV will cause GetQual to do all actions with global
- variables instead of local ones.
-
- The argument SHOW lists all depending variables and their values - just
- as the "SET" command would do it.
-
- When using the argument CLEAR, GetQual does not get the qualifiers but
- removes the variables.
-
-
- Test it
-
- I have added a script file ("TestIt") that simply calls GetQual and
- returns a list of the pressed qualifiers.
-
- Try and enjoy! ;)
-
-
- Wishes
-
- As I'd like to get to know how many persons think this tool to be worth
- using, I'd be glad if all users would send me a short e-mail. Thanks.
-
- My e-mail address is:
-
- ODIN@liteline.mcnet.de
-
-
- Thanks
-
- I wish to thank Carsten Druecke, who was a help when I became crazy of a
- problem that, after all, was not caused by GetQual itself.
-
-